<?php

namespace App\Http\Requests;

class GetNoticeRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'order'=>'in:desc,asc',
        ];
    }

    public function messages()
    {
        return [
            'order.in'=>['error_code'=>'F004001','message'=>'排序只能是 desc | asc ！'],
        ];
    }
}
